# 处理时间和日期的模块
from datetime import datetime


# 输入某年某月某日，判断这一天是这一年的第几天
def main(year, month, day):
    now_date = datetime(year, month, day)
    start_date = datetime(year, 1, 1)
    return (now_date - start_date).days + 1


if __name__ == "__main__":
    print(main(2020, 12, 31))
